#include<iostream>
using namespace std;
int main(){
  int a;
  int sum=0,n;
  cin>>n;
  for(int i=1;i<=n;i++){
    cin>>a;
    sum+=a;
    }
  cout<<sum<<" ";
  cout.precision(5);
  cout<<fixed;
  cout<<1.0*sum/n;

}